package com.chen.client;

import org.dromara.hmily.annotation.Hmily;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(name = "micro-service1")
public interface Service1Client {

    /**
     * 转入资金到指定账户
     * @param accountId
     * @param amount
     * @return
     */
    @RequestMapping(value = "/accountA/serviceOneTransOut",method = RequestMethod.POST)
    @Hmily()
    public void serviceOneTransOut(@RequestParam("accountId") int accountId, @RequestParam("amount") BigDecimal amount);

}
